import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import { terser } from 'rollup-plugin-terser'
export default {
  input: './src/index.js',
  external: [/@babel\/runtime/],
  plugins: [
    commonjs(),
    resolve(),
    babel({ babelHelpers: 'runtime' }),
    terser()
  ],
  output: [{
    file: './dist/utils.js',
    format: 'es',
    sourcemap: true
  }]
}